home *** CD-ROM | disk | FTP | other *** search
- /************************************/
- /* Bildschirm-Steuercodes */
- /* als Zeichen und */
- /* Pseudo-Funktionen 'define'd */
- /* von Holger Weets fuer */
- /* SOZOBON-C imlementiert */
- /* */
- /* letzte Aenderung: 14.01.90 */
- /************************************/
-
-
- #ifndef _VT52_
-
- #define _VT52_
-
- /* Cursor hoch */
- #define CUR_UP "\033A"
- #define cur_up() Bconout(CUR_UP)
-
- /* Cursor runter */
- #define CUR_DWN "\033B"
- #define cur_dwn() Bconout(CUR_DWN)
-
- /* Cursor rechts */
- #define CUR_RIGHT "\033C"
- #define cur_right() Bconout(CUR_RIGHT)
-
- /* Cursor links */
- #define CUR_LEFT "\033D"
- #define cur_left() Bconout(CUR_LEFT)
-
- /* Bildschirm loeschen */
- #define CLS "\033E"
- #define cls() Bconout(CLS)
-
- /* Cursor in linke obere Ecke */
- #define CUR_HOME "\033H"
- #define cur_home() Bconout(CUR_HOME)
-
- /* Cursor hoch, evtl. scrollen */
- #define CUR_SUP "\033I"
- #define cur_sup() Bconout(CUR_SUP)
-
- /* Bildschirm ab Cursor loeschen */
- #define CLR_CSCR "\033J"
- #define clr_csrc() Bconout(CLR_CSCR)
-
- /* Zeile ab Cursor loeschen */
- #define DEL_CLIN "\033K"
- #define del_clin() Bconout(DEL_CLIN)
-
- /* Zeile einfuegen */
- #define INS_LIN "\033L"
- #define ins_lin() Bconout(INS_LIN)
-
- /* Zeile herausloeschen */
- #define DEL_SLIN "\033M"
- #define del_slin() Bconout(DEL_SLIN)
-
- /* Cursor positionieren */
- #define CUR_POS "\033Y"
- #define cursor(x,y) Bconout(CUR_POS),Bconout((y)+32),Bconout((x)+32)
-
- /* Schriftfarbe setzen /
- #define VOR_COL "\033b"
- #define vor_col(x) Bconout(VOR_COL),Bconout(x)
-
- /* Hintergrundfarbe setzen */
- #define BAK_COL "\033c"
- #define bak_col(x) Bconout(BAK_COL),Bconout(x)
-
- /* Bildschirm bis Cursor loeschen */
- #define CLR_SCRC "\033d"
- #define clr_scrc() Bconout(CLR_SCRC)
-
- /* Cursor einschalten */
- #define CUR_ON "\033e"
- #define cur_on() Bconout(CUR_ON)
-
- /* Cursor ausschalten */
- #define CUR_OFF "\033f"
- #define cur_off() Bconout(CUR_OFF)
-
- /* Cursorposition speichern */
- #define CUR_SAV "\033j"
- #define cur_sav() Bconout(CUR_SAV)
-
- /* Cursor an gespeicherte Position setzen */
- #define CUR_RES "\033k"
- #define cur_res() Bconout(CUR_RES)
-
- /* Zeile loeschen */
- #define DEL_LIN "\033l"
- #define del_lin() Bconout(DEL_LIN)
-
- /* Zeile bis Cursor loeschen */
- #define DEL_LINC "\033o"
- #define del_linc() Bconout(DEL_LINC)
-
- /* Invers ein */
- #define REV_ON "\033p"
- #define rev_on() Bconout(REV_ON)
-
- /* Invers aus */
- #define REV_OFF "\033q"
- #define rev_off() Bconout(REV_OFF)
-
- /* Zeilen-Ueberlauf ein */
- #define OVR_ON "\033v"
- #define ovr_on() Bconout(OVR_ON)
-
- /* Zeilen-Ueberlauf aus */
- #define OVR_OFF "\033w"
- #define ovr_off() Bconout(OVR_OFF)
-
- #endif _VT52_
-